import { request } from '@umijs/max';
import type { Params, Results } from './typings';

export function getWordsInfo(params: Params) {
  return request<Results>('/randomWords', {
    method: 'GET',
    params,
  });
}
